package com.dkd.easybook.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.Date;
/**
 * 用户附件对象 eb_attachments
 *
 * @author itheima
 * @date 2024-12-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class EbAttachments extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 附件ID
     */
    @TableId(value = "attachment_id")
    private Long attachmentId;
    /**
     * 附件URL
     */
    @Excel(name = "附件URL")
    private String url;
    /**
     * 描述
     */
    @Excel(name = "描述")
    private String description;
    //服务器文件名
    @Excel(name = "服务器文件名")
    private String fileName;
    //原始文件名
    @Excel(name = "原始文件名")
    private String originalFileName;
    //根路径
    @Excel(name = "根路径")
    private String basePath;
    //路径
    @Excel(name = "子路径")
    private String path;
    //文件后缀
    @Excel(name = "文件后缀")
    private String ext;
    //文件类型
    @Excel(name = "文件类型")
    private String contentType;
    //平台类型
    @Excel(name = "平台类型")
    private String platForm;
    //文件大小
    @Excel(name = "文件大小")
    private Long size;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;
    /**
     * 用户名称
     */
    @Excel(name = "用户名称")
    @TableField(exist = false)
    private String userName;
    //部门
    @Excel(name = "部门")
    @TableField(exist = false)
    private String deptName;
}
